package com.example.demomultidatasourcemybatis.primary;

import com.example.demomultidatasourcemybatis.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookMapperPrimary {
    @Select("SELECT * FROM book")
    public List<Book> getAll();

    @Delete("DELETE FROM book")
    int deleteAll();
}
